let mutations = {
    increment(){},
    decrement(){},
    productsget(state,payload){
        //修改state状态  payload 就是请求后得到的数据
        state.state1.products = payload
    },
    cartsget(state,payload){
        // 存放购物车的数据
        state.state1.carts = payload
    }
}
export default mutations